package com.gitee.ywj1352.lerning.ag.common.exception;

/**
 * Created by ywj on 2018/2/8.
 */
public class BaseException extends Exception{

    private Integer status=200;

    public BaseException(Integer status,String message){
        super(message);
        this.status=status;


    }

    public BaseException() {
        super();
    }

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    protected BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
